    	<div class="position">当前位置：<a href="<?php echo Yii::app()->createUrl('member/index/index');?>"><?php echo t('Member','web') ?></a> &gt; <a href="<?php echo Yii::app()->createUrl('member/index/refund');?>">客户服务</a> &gt; 投诉管理</div>
        <div class="hr_15"></div>
        <div class="steps">
            <ul class="fs_14 c_f">
                <li class="cur first"><span class="one">第一步，投诉申请</span></li>
                <li class=""><span class="two">第二步，卖家处理投诉</span></li>
                <li class="last"><span class="three">第三步，投诉完成</span></li> 
            </ul>
        </div>
        <div class="hr_20"></div>
        <!--投诉管理 start-->
        <div class="complain_box step_box">
          <?php
            if (condition) {
              # code...
            }
          ?>

        	<div class="step_info">
                  <?php $form = $this->beginWidget('CActiveForm', array(
    					'id'=>'mem-report-form',
   						'enableAjaxValidation'=>true,
                  		'action'=>Yii::app()->createUrl('member/index/complaintwo'),
                  		'htmlOptions'=>array('enctype'=>'multipart/form-data'),
                  		//'focus'=>array($model,'zmr_content'),     
						)); 
				  ?>     	
				  <?php echo $form->hiddenField($model,'zm_id_from',array('value'=>Yii::app()->user->userid));?>	
				  <?php echo $form->hiddenField($model,'zm_id_to',array('value'=>$product->zm_id));?>	
				  <?php echo $form->hiddenField($model,'zp_id',array('value'=>$product->zp_id));?>	
				  <?php echo $form->hiddenField($model,'zop_id',array('value'=>$ordproduct->zop_id));?>
                    <ul class="form_list"> 
                        <li><span class="tit"><em class="xing">*</em>投诉原因：</span>
							<?php echo $form->dropDownList($model,'zmr_type_info',$this->complainType,array('class'=>'s_ipt')); ?>
                        </li>
                        <li class="c_f"><span class="tit f_l"><em class="xing">*</em>上传凭证：</span>
                            	<div class="cert_img f_l">
                                	<p class="c_999"><span class="ico ico_tip"></span>每张图片大小不能超过500K</p>
                                    <ul class="uploadimg c_f">
                                    	<li class="f_l">
											<img id="img1" src="/images/cert_img.jpg" alt="" />
											<?php echo CHtml::link('上传...'.CHtml::fileField('image','',array('id'=>'uploadimg1','multiple'=>true)),'javascript:',array('class'=>'mem_btn mem_btn10 filelink','onclick'=>"uploadimg_0('1')"))?>
											<?php echo CHtml::hiddenField('MemReport[zmr_mem_pic][]','',array('id'=>'proimage1'))?>
										</li>                               		    	
                                    	<li class="f_l">
											<img id="img2" src="/images/cert_img.jpg" alt="" />
											<?php echo CHtml::link('上传...'.CHtml::fileField('image','',array('id'=>'uploadimg2','multiple'=>true)),'javascript:',array('class'=>'mem_btn mem_btn10 filelink','onclick'=>"uploadimg_0('2')"))?>
											<?php echo CHtml::hiddenField('MemReport[zmr_mem_pic][]','',array('id'=>'proimage2'))?>
										</li>
										<li class="f_l">
											<img id="img3" src="/images/cert_img.jpg" alt="" />
											<?php echo CHtml::link('上传...'.CHtml::fileField('image','',array('id'=>'uploadimg3','multiple'=>true)),'javascript:',array('class'=>'mem_btn mem_btn10 filelink','onclick'=>"uploadimg_0('3')"))?>
											<?php echo CHtml::hiddenField('MemReport[zmr_mem_pic][]','',array('id'=>'proimage3'))?>
										</li>         
                                    </ul>
                                </div>
                            </li>
                        <li><span class="tit"><em class="xing">*</em>补充说明：</span><?php echo $form->textArea($model,'zmr_content',array('class'=>'t_area')); ?></li>
                        <li class="link"><span class="tit"></span><input class="mem_btn mem_btn05" type="submit" name="" value="提交申请" /><input class="mem_btn mem_btn08" type="button" name="" value="取消投诉" /></li>
                    </ul>
				<?php $this->endWidget(); ?>
            </div>
            <table class="list_table" cellpadding="0" cellspacing="0" width="100%">
            	<tr>
                	<th width="35%">宝贝信息</th>
                    <!-- <th width="15%">卖家</th> -->
                    <th width="12%">单价（元）</th>
                    <th width="12%">数量</th>
                    <th width="14%">优惠</th>
                    <th width="12%">小计（元）</th>
                </tr>
                <tr>
                	<td class="pro tl">
                    	<div class="c_img c_img50"><a href="<?php echo Yii::app()->createUrl('home/product/detail',array('id'=>$product['zp_id']));?>" title="" target="_blank"><img width="50" height="50" src="<?php echo $product->zp_pic; ?>" alt="" /></a></div>
                   		<p class="title_pro"><a class="c_06c" href="<?php echo Yii::app()->createUrl('home/product/detail',array('id'=>$product['zp_id']));?>" title="<?php echo $product['zp_name'];?>" target="_blank"><?php echo $product['zp_name'];?></a></p>
                    </td>
                    <!-- <td><a class="c_06c" href="<?php //echo Company::createCompanyUrl($product->company->zc_sub_domain);?>" title=""><?php //echo $product->company->zc_name;?></a></td> -->
                    <td><?php echo $ordproduct->zop_price;?></td>
                    <td><?php echo $ordproduct->zop_nums;?></td>
                    <td>
                    	<?php 
							foreach($discount as $key=>$value){
								echo OrdDiscount::getDiscountType($value->zod_type).'：-'.$value->zod_price.'</br>';
							}
						?>
                    </td>
                    <td><span class="fw_b fs_14 c_f60"><?php echo $ordproduct->zop_real_price*$ordproduct->zop_nums;?></span></td>
                </tr>
            </table>
        </div>
    	<!--投诉管理 end-->
<script src="<?php echo Yii::app()->baseUrl;?>/js/upload_img.js"></script>  
<script src='<?php echo Yii::app()->baseUrl;?>/js/jquery.ui.widget.js'></script> 
<script src='<?php echo Yii::app()->baseUrl;?>/js/jquery.iframe-transport.js'></script> 
<script src='<?php echo Yii::app()->baseUrl;?>/js/jquery.fileupload.js'></script> 